trigger DiscussionMemberBeforeDelete on DiscussionMember__c (before delete) 
{
	if (!TeamUtil.currentlyExeTrigger) 
	{
		try 
		{	
			TeamUtil.currentlyExeTrigger = true;	

        	DiscussionForumSubscribersEmailServices DFEmail = new DiscussionForumSubscribersEmailServices();
            for (DiscussionMember__c tm : Trigger.old) 
            {
            	DFEmail.sendMemberLeaveAdd( 'TeamMemberLeave', tm.Id );  	
            }
		} 
		finally 
		{
        	TeamUtil.currentlyExeTrigger = false;
		}
	} 	
}